/**
* sb8
*/

<template>
    <div class="function-use-content">
        <div class="device-content">
            <div class="title">
                <span class="span-1">设备SN8</span>
                <slot name="content"></slot>
                <div class="table-box">
                    <el-table
                            :data="sn8list"
                            stripe
                            height="300"
                            style="width: 100%">
                        <el-table-column
                                prop="runMode"
                                label="时间">
                        </el-table-column>
                        <el-table-column
                                prop="modeCount"
                                label="SN码">
                        </el-table-column>
                        <el-table-column
                                prop="deviceCount"
                                label="行为">
                        </el-table-column>
                    </el-table>
                </div>
            </div>
        </div>

    </div>
</template>

<script>
export default {
  created () {
  },
  props: {
    functionUserData: {
      type: Object
    }
  },
  watch: {
    functionUserData (now, old) {
      if (now) {
        this.$nextTick().then(() => {
          // this.initPage(now)
        })
      }
    }
  },
  data () {
    return {
      sn8list: [
        {
          time: '05-06 18：56',
          sncode: 'XXXXX',
          doing: '开门上报'
        }
      ],
      model_type: ''
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
    @import "@/assets/scss/modules/variables-module.scss";
    @import "@/assets/scss/modules/common-module.scss";
    .function-use-content{
        .device-content{
            @include device-content;
        }
        .chart-wrap {
            width: 100%;
            height: 100%;
        }
        .use-bottom{
            display: flex;

        }
        .table-box{
            margin-top: 20px;
        }
    }
</style>
